//
//  DCNIMMessageManager.h
//  DCMessageAdapter
//
//  Created by 张涛 on 2020/11/3.
//  Copyright © 2020 张涛. All rights reserved.
//
#import <NIMSDK/NIMSDK.h>
#import "DCCustomMessageDelegate.h"
#import "DCChatMessageDelegate.h"
#import <DCUtilKit/DCError.h>

NS_ASSUME_NONNULL_BEGIN

@interface DCMessageAdapter: NSObject<NIMSystemNotificationManagerDelegate,NIMChatManagerDelegate>

//自定义消息委托
@property(nonatomic,weak) id<DCCustomMessageDelegate> customMessageDelegate;
//聊天消息委托
@property(nonatomic,weak) id<DCChatMessageDelegate> chatMessageDelegate;

//发送自定义消息
- (void) sendCustomMessage:(NSString*)account content:(NSDictionary*)content callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;
//发送群组聊天文本消息
- (void) sendTeamChatTextMessage:(NSString*)teamId content:(NSDictionary*)cotent;
//创建群组聊天
- (void) createTeamChat:(NSArray*)user callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;

@end

NS_ASSUME_NONNULL_END
